package com.digiwin.demo.influx;

import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

/**
 * @Author yanggld
 * @Date 2020/1/2-17:04
 * @Description
 */
@Data
@Measurement(name = "sport")
public class MessageBody {

	@Column(name = "userId",tag = true)
	private String userId;

	@Column(name = "phone",tag = true)
	private String phone;

	@Column(name = "value")
	private int value;


	public MessageBody() {
	}

	public MessageBody(String userId, String phone, int value) {
		this.userId = userId;
		this.phone = phone;
		this.value = value;
	}
}